# handler_wave.py
#
#

""" this handler handles all the wave jsonrpc requests. """

import time
import logging

starttime = time.time()
logging.warn('start time: %s' % time.ctime(starttime))

## gozerlib imports

from gozerlib.wave.bot import WaveBot
from gozerlib.plugins import plugs
from gozerlib.utils.generic import getversion
from gozerlib.boot import boot
from gozerlib.fleet import fleet

## basic imports

import logging

logging.info(getversion('WAVE'))

# the bot
boot()

bot = fleet.makebot('wavebot', 'wave')

plugs.loadall()

def main():
    global bot
    bot.Run()

if __name__ == "__main__":
    main()
